package com.winbomb.simulife;

public class MoodType {

	public static final MoodType VERY_SAD = new MoodType(1);
	public static final MoodType SAD = new MoodType(2);
	public static final MoodType NORMAL = new MoodType(3);
	public static final MoodType HAPPY = new MoodType(4);
	public static final MoodType VERY_HAPPY = new MoodType(5);

	private int moodLevel;

	private MoodType(int level) {
		this.moodLevel = level;
	}

	public int getMoodLevel() {
		return moodLevel;
	}

	public MoodType moreHappy() {
		if (this == VERY_SAD) {
			return SAD;
		} else if (this == SAD) {
			return NORMAL;
		} else if (this == NORMAL) {
			return HAPPY;
		} else if (this == HAPPY) {
			return VERY_HAPPY;
		} else {
			return this;
		}
	}

	public MoodType moreSad() {
		if (this == SAD) {
			return VERY_SAD;
		} else if (this == NORMAL) {
			return SAD;
		} else if (this == HAPPY) {
			return NORMAL;
		} else if (this == VERY_HAPPY) {
			return HAPPY;
		} else {
			return this;
		}
	}
}
